From: Florian Müllner Date: Sun, 31 Aug 2014 00:18:51 +0000 (+0200) Subject: overviewControls: Fix initial slide-in animation X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2202 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e60bf44c2e06d7aecaba2803bf48e53bc47a6ce3;p=gnome-shell.git overviewControls: Fix initial slide-in animation Controls are slided in by animating translationX from the actor's width to 0; however as _updateTranslation() will skip the animation when the property is already at its target value and 0 happens to be the initial value of translationX, the initial animation is skipped. Fix this by initializing translationX to undefined, which will always differ from a valid target value. --- diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index 9fe1dfd2b..4bd3d67ab 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -36,7 +36,7 @@ const SlideLayout = new Lang.Class({ _init: function(params) { this._slideX = 1; - this._translationX = 0; + this._translationX = undefined; this._direction = SlideDirection.LEFT; this.parent(params);